package com.latefly.skewwork.ui.page.login.register

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController

@Composable
fun BackToLogin(
    navController: NavHostController,
    modifier: Modifier = Modifier
) {
    Column(
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        Row {
            Text(text = "账户注册")
        }
        Column {
            Row(
                modifier = Modifier.padding(top = 30.dp, bottom = 30.dp)
            ) {
                Text(text = "恭喜您账户注册完成！\n" +
                        "请点击完成后输入账户密码登录")
            }

        }

        Row {
            Button(
                onClick = { navController.navigate("Login")},
                modifier = Modifier
                    .weight(1f)
                    .height(50.dp)
                    .fillMaxWidth()
            ) {
                Text(text = "Back to Login")
            }

        }
    }
}